<?php

/**
 * @author hongyang
 */
class NewsController extends BaseArticleController
{

    protected $layout = 'layouts.master';

    /**
     * 看新闻
     */
    public function listContainer()
    {
        $this->layout->content = View::make('news.list')->with('class_id', Article::TYPE_INFO);
    }

    public function listNews()
    {
        return $this->getArticleListView('news.list', Article::TYPE_INFO);
    }

    /**
     * 看新闻详情
     */
    public function view($id)
    {
        return $this->articleView($id, 'news.view', Article::TYPE_INFO);
    }
}